﻿using MediatR;
using ProduceBasicData.ErrorCode;

namespace ProduceBasicData.Api.Application.Command.IncomingMaterialsManage
{
    /// <summary>
    /// 创建检验方案命令
    /// </summary>
    public class CreateInspectionSchemeCommand : IRequest<ApiResult<int>>
    {
        /// <summary>
        /// 系统编码
        /// </summary>
        public string? InspectionSchemeCode { get; set; }
        /// <summary>
        /// 检验方案名称（如“测试方案”“继电器”）
        /// </summary>
        public string? Name { get; set; }

        /// <summary>
        /// 检验类型（如“全检”“抽检”）
        /// </summary>
        public string? Type { get; set; }

        /// <summary>
        /// 抽检方式（如“百分比”，仅抽检类型有效）
        /// </summary>
        public string? SamplingMethod { get; set; }

        /// <summary>
        /// 抽检参数值（如“15%”“30%”，与抽检方式配合）
        /// </summary>
        public string? Value { get; set; }

        /// <summary>
        /// 检验方案描述信息
        /// </summary>
        public string? Description { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        public string? CreateName { get; set; }


        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }
    }
}
